/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package framework.view;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;
import java.util.List;

import javax.swing.AbstractAction;
import javax.swing.JButton;
import javax.swing.JComponent;
import javax.swing.KeyStroke;

import dominio.view.Menu;

import example.ilm.gui.IlmDomainGUI;


public class BaseMenuGroup {
    protected String caption;
    protected List menuItems;
    protected List jButtons;

    public BaseMenuGroup(String caption) {
        menuItems = new ArrayList();
        jButtons = new ArrayList();
        this.caption = caption;
    }
    
    public void addMenuItem(BaseMenuItem menuItem) {
    	menuItems.add(menuItem);
    }
    
    public List getMenuItems() {
        return menuItems;
    }

    public void setMenuItems(List menuItems) {
        this.menuItems = menuItems;
    }

    public String getCaption() {
        return caption;
    }

    public void setCaption(String caption) {
        this.caption = caption;
    }
    
    public void addJButton(JButton jButton) {
    	jButtons.add(jButton);
    }
    
	public List<JButton> getJButtons() {
		return jButtons;
	}
}
